package com.imcode.listdemo;

import java.util.LinkedList;
import java.util.List;

public class LinkedListDemo01 {
    public static void main(String[] args) {
        List<String> list = new LinkedList<>();
        list.add(0, "Java");
        list.add(1, "C++");
        list.add(2, "C#");
        System.out.println(list.get(2));//C#
        list.set(2,"Python");
        System.out.println(list);//[Java, C++, Python]
        list.remove(0);
        System.out.println(list);//[C++, Python]
    }
}
